Chao-Hsiung Liao [Tue, 25 Jan 2011 11:23:35 +0000 (19:23 +0800)]
Updated Traditional Chinese translation (Hong Kong and Taiwan)
Matthias Clasen [Tue, 25 Jan 2011 03:20:35 +0000 (22:20 -0500)]
Clarify documentation about application vs window lifecycle
https://bugzilla.gnome.org/show_bug.cgi?id=639931
Matthias Clasen [Tue, 25 Jan 2011 00:25:08 +0000 (19:25 -0500)]
Add gtk_app_chooser_button_get/set_heading
Carlos Garnacho [Mon, 24 Jan 2011 18:55:41 +0000 (19:55 +0100)]
Do not modify associated device for non-master devices on dispose
Only master devices must modify the associated device to separate
a pointer/keyboard pair, slave devices must only call
_gdk_device_remove_slave().
Fixes bug 639767 - password not accepted in gnome-screensaver dialog,
reported by Frederic Crozat. On VT-switch, the X server removes its
grab on HW devices, the effect on clients is that slave devices
disappear, and these were mistakenly mangling the master device
hierarchy. so gdk_device_get_associated_device() on the client
pointer wouldn't return the paired keyboard anymore.
The final effect is that gtkplug-x11 wasn't setting a keyboard to
its generated events.
Carlos Garnacho [Mon, 24 Jan 2011 17:14:05 +0000 (18:14 +0100)]
Unset border-width for treeview rows in default CSS
Fixes bug #640391 - Display lines between rows when window is focused.
Reported by Guillaume Desmottes.
Matthias Clasen [Mon, 24 Jan 2011 12:46:15 +0000 (07:46 -0500)]
Avoid passing widgets around here
The style context is enough.
Matthias Clasen [Mon, 24 Jan 2011 05:24:12 +0000 (00:24 -0500)]
Port gtk_draw_insertion_cursor to GtkStyleContext
Matthias Clasen [Mon, 24 Jan 2011 04:48:32 +0000 (23:48 -0500)]
Kill one more unused variable
Matthias Clasen [Mon, 24 Jan 2011 04:20:57 +0000 (23:20 -0500)]
Don't leak CursorInfo structs
Matthias Clasen [Mon, 24 Jan 2011 02:50:39 +0000 (21:50 -0500)]
Silence new gcc warnings
gcc 4.6.0 has started to warn about set-but-unused variables.
So don't do that, then.
Carlos Garnacho [Mon, 24 Jan 2011 01:38:12 +0000 (02:38 +0100)]
Add extra checks for GdkDevice functions that might fail on slave devices.
Documentation bits have been added as well.
Carlos Garnacho [Mon, 24 Jan 2011 01:32:50 +0000 (02:32 +0100)]
Avoid toplevel tracking on slave device after ungrab
slave devices don't have coordinates themselves, as they depend
on a master, this only changes if they have a grab in effect,
so only keep toplevel tracking enabled in such situation. Fixes
Bug #640313 - BadDevice X error when ungrabbing a SLAVE device,
noticed by Jesse van den Kieboom.
Matthias Clasen [Sun, 23 Jan 2011 23:50:09 +0000 (18:50 -0500)]
Silence new gcc warnings
gcc 4.6.0 has started to warn about set-but-unused variables.
So don't do that, then.
Matthias Clasen [Sun, 23 Jan 2011 23:29:07 +0000 (18:29 -0500)]
Split out private style context api into a private header
Carlos Garnacho [Sun, 23 Jan 2011 22:19:30 +0000 (23:19 +0100)]
Free button_state.mask after XIQueryPointer()
This function allocates the button mask, so free it after
use, or right before the next XIQueryPointer() call, as done
in gdk_x11_device_xi2_window_at_position().
Carlos Garnacho [Sun, 23 Jan 2011 22:09:58 +0000 (23:09 +0100)]
Fix valgrind warning about uninitialized value
mods_state->effective is not being set in XIQueryPointer() currently, so
use base|latched|locked instead, effective is nothing else than a shorthand
for these ORs, and these 3 values are set correctly anytime.
Benjamin Otte [Sun, 23 Jan 2011 20:39:00 +0000 (21:39 +0100)]
gdk: When reffing the impl surface, ref it from the impl window
This was causing surfaces to be created with the wrong size and that
caused broken clipping.
https://bugzilla.gnome.org/show_bug.cgi?id=640195
Carlos Garnacho [Sun, 23 Jan 2011 19:01:22 +0000 (20:01 +0100)]
Render check/radio buttons with border-color: @fg_color
Carlos Garnacho [Sun, 23 Jan 2011 17:39:15 +0000 (18:39 +0100)]
GtkNotebook: only set/unset active flag on the tab label
Carlos Garnacho [Sun, 23 Jan 2011 17:37:14 +0000 (18:37 +0100)]
Simplify GTK_STATE_FLAG_FOCUSED handling in state propagation.
Just unsetting it before propagating to the children suffices.
Carlos Garnacho [Sun, 23 Jan 2011 17:21:32 +0000 (18:21 +0100)]
Do not unset sensitivity mistakenly in gtk_widget_set_state_flags()
together with commit
8903615a34, this finally fixes bug #640282.
Insensitivity is handled separatedly in _gtk_widget_update_state_flags(),
but the insensitive flag is mistakenly unset afterwards if clear is TRUE
in gtk_widget_set_state_flags().
Carlos Garnacho [Sun, 23 Jan 2011 17:04:41 +0000 (18:04 +0100)]
Gtk(Toggle)Button: preserve untouched state flags when updating state.
Partly fixes bug #640282, noticed by Christian Persch. buttons were
clobbering the insensitive flag when updating their state.
Matthias Clasen [Sun, 23 Jan 2011 17:26:23 +0000 (12:26 -0500)]
Add a migration guide section about GdkDrawable
https://bugzilla.gnome.org/show_bug.cgi?id=640188
Chun-wei Fan [Sun, 23 Jan 2011 16:10:19 +0000 (00:10 +0800)]
Update Visual C++ 2008 Project Files Stuff
-Updated README.txt file in build/win32/vs9.
-Fix the gdk.vcprojin and gtk+.vsprops regarding include paths
and copying of headers (missed header etc.)
Jorge González [Sun, 23 Jan 2011 14:10:51 +0000 (15:10 +0100)]
Updated Spanish translation
Kristjan SCHMIDT [Sun, 23 Jan 2011 12:48:41 +0000 (13:48 +0100)]
Updated Esperanto translation
Kjartan Maraas [Sun, 23 Jan 2011 10:41:44 +0000 (11:41 +0100)]
Updated Norwegian bokmål translation
Aron Xu [Sun, 23 Jan 2011 08:37:09 +0000 (08:37 +0000)]
Update Chinese (China) GTK+ po translation.
Matthias Clasen [Sun, 23 Jan 2011 04:48:39 +0000 (23:48 -0500)]
Expose gtk-auto-mnemonics as an Xsetting
Matthias Clasen [Sun, 23 Jan 2011 04:47:01 +0000 (23:47 -0500)]
checksettings: succeed quietly
Matthias Clasen [Sun, 23 Jan 2011 04:23:46 +0000 (23:23 -0500)]
Fix alignment problems with text cell renderers
When set to PANGO_ALIGN_CENTER, text was rendered off-center
by the amount of 'free space' that the PangoLayout left (ie
the x returned by pango_layout_get_pixel_extents).
Yaron Shahrabani [Sun, 23 Jan 2011 00:40:52 +0000 (02:40 +0200)]
Updated Hebrew translation.
Jorge González [Sat, 22 Jan 2011 15:51:03 +0000 (16:51 +0100)]
Updated Spanish translation
Ivar Smolin [Sat, 22 Jan 2011 09:53:00 +0000 (11:53 +0200)]
[l10n] Updated Estonian translation
Federico Mena Quintero [Fri, 21 Jan 2011 18:37:35 +0000 (12:37 -0600)]
bgo#639531 - [filechooser] Handle the case where the user types a nonexistent_subfolder/file.txt
The logic was to try to switch to that nonexistent folder and thus get
an error message presented. However, no such message actually appears,
as the file chooser tries to switch to the closest parent folder that
actually exists, without bringing up an error message --- this is done
to cope with the case of the file chooser being started with a folder
that doesn't exist anymore.
Now, we just bring up an error message directly when we detect that
the user types a subfolder name that doesn't exist.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Federico Mena Quintero [Fri, 21 Jan 2011 21:39:17 +0000 (15:39 -0600)]
bgo#640161 - Maintain map/unmap invariants in GtkFileChooserDialog
We used to explicitly map and unmap the child GtkFileChooserWidget when
mapping and unmapping the dialog, respectively. Now that GtkWidget actually
unmaps child widgets (instead of avoiding that), we can assume that the
child GtkFileChooserWidget will be unmapped when we wanted it to be.
This fixes a warning that happened with the new GtkWidget invariant checker,
as we were mapping our child widget before calling our parent class' ::map() handler.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Federico Mena Quintero [Fri, 21 Jan 2011 19:36:27 +0000 (13:36 -0600)]
bgo#626336 - Don't assume that GtkButton is activated only when a keyboard event is available
Buttons may also be activated at any time from gtk_widget_activate()
or related functions. In that case, just do the 'show the button
as pushed for a short amount of time' trick, but don't actually
try to grab the keyboard device.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
William Jon McCann [Thu, 20 Jan 2011 21:40:29 +0000 (16:40 -0500)]
Use actual app name in app choosers
Instead of using a strange composite of name and generic name.
https://bugzilla.gnome.org/show_bug.cgi?id=640005
Tomeu Vizoso [Fri, 21 Jan 2011 16:34:18 +0000 (17:34 +0100)]
[gi] Return value of gdk_window_new should have transfer full
Michael Natterer [Fri, 21 Jan 2011 14:38:52 +0000 (15:38 +0100)]
gtk: no need to add GTK_STYLE_FLAG_FOCUSED to the widget's state flags
because they correctly contain that flag now if the widget has focus.
Carlos Garnacho [Fri, 21 Jan 2011 14:19:44 +0000 (15:19 +0100)]
Make gtk_widget_get_state_flags() avoid propagating the focused flag down the hierarchy
There is only one widget supposed to have the focused flag at a given time,
so avoid propagating the state down the hierarchy, the focused flag is now
also set in _gtk_widget_set_has_focus().
Michael Natterer [Fri, 21 Jan 2011 14:06:43 +0000 (15:06 +0100)]
gtk: save/restore the cairo_t around early upchaining in draw()
and don't save/restore the style context because that's the job of
each draw() implementation.
Michael Natterer [Fri, 21 Jan 2011 11:47:56 +0000 (12:47 +0100)]
gtk: remove unused "window" variable from gtk_entry_draw_frame()
Fridrich Štrba [Fri, 21 Jan 2011 10:20:16 +0000 (11:20 +0100)]
fix win32 build after removal of the colormap debug category
Sebastian Pölsterl [Fri, 21 Jan 2011 09:36:07 +0000 (10:36 +0100)]
[gi] Added missing (allow-none) annotation to gdk_device_grab
Matthias Clasen [Fri, 21 Jan 2011 04:38:50 +0000 (23:38 -0500)]
Fix keynav issue in menu mode
Skipping insensitive and separator rows was broken in menu mode.
https://bugzilla.gnome.org/show_bug.cgi?id=639845
Benjamin Otte [Fri, 21 Jan 2011 03:39:20 +0000 (04:39 +0100)]
assistant: Fix mapped invariants
gtk_widget_verify_invariants() was complaining, now it's silent.
Matthias Clasen [Fri, 21 Jan 2011 03:35:09 +0000 (22:35 -0500)]
Avoid a warning if GtkCellView has no model
Matthias Clasen [Fri, 21 Jan 2011 02:36:50 +0000 (21:36 -0500)]
Fix a crash during DND
https://bugzilla.gnome.org/show_bug.cgi?id=640105
William Jon McCann [Thu, 20 Jan 2011 21:58:19 +0000 (16:58 -0500)]
When cancelling the app dialog return to the last item in combobox
https://bugzilla.gnome.org/show_bug.cgi?id=640011
Matthias Clasen [Fri, 21 Jan 2011 02:21:42 +0000 (21:21 -0500)]
Make GtkAppChooserButton work in modal context
Matthias Clasen [Fri, 21 Jan 2011 01:55:59 +0000 (20:55 -0500)]
Add a way to set the heading of GtkAppChooserDialog
The application can probably set a better string than the default
we construct, like 'Select an application for "software" files'.
Benjamin Otte [Sun, 16 Jan 2011 16:03:40 +0000 (17:03 +0100)]
gdk: Remove colormap debug category
We don't have colormaps anymore.
Benjamin Otte [Sun, 16 Jan 2011 13:47:59 +0000 (14:47 +0100)]
x11: Don't keep two lists of devices internally
Matthias Clasen [Fri, 21 Jan 2011 00:59:55 +0000 (19:59 -0500)]
Change the label of the GtkAppChooserDialog button
We are not "opening" an application, we are selecting it to
open a file. String change !
William Jon McCann [Thu, 20 Jan 2011 21:22:51 +0000 (16:22 -0500)]
Make the show more button follow the show-other property
Instead of show-all.
https://bugzilla.gnome.org/show_bug.cgi?id=640006
Matthias Clasen [Fri, 21 Jan 2011 00:00:38 +0000 (19:00 -0500)]
Adapt gtk_icon_info_load_symbolic to librsvg limitations too
Pointed out by Owen Taylor.
William Jon McCann [Thu, 20 Jan 2011 20:48:00 +0000 (15:48 -0500)]
Don't reserve a column of space the for icons in app chooser button
In order to more consistently present the items regardless of
whether they have icons or not.
Johan Dahlin [Thu, 20 Jan 2011 16:22:13 +0000 (14:22 -0200)]
Do not scan gtktextdisplay.h, avoids a scanner warning
William Jon McCann [Thu, 20 Jan 2011 01:00:37 +0000 (20:00 -0500)]
Don't use an icon for Other Applications...
We only show icons in "menus" for nouns or dynamic objects.
Johan Dahlin [Thu, 20 Jan 2011 14:11:22 +0000 (12:11 -0200)]
Mark api with xlib types as skipped
Since they'd need to have boxed type to be able to work
for introspection based bindings
Johan Dahlin [Thu, 20 Jan 2011 14:08:34 +0000 (12:08 -0200)]
gtksettings: Add gtk-doc to silent an annotation warning
Johan Dahlin [Thu, 20 Jan 2011 14:08:11 +0000 (12:08 -0200)]
Correct gtk-doc syntax and add missing (transfer)
Johan Dahlin [Thu, 20 Jan 2011 13:43:28 +0000 (11:43 -0200)]
Use identifier-prefix instead of deprecated strip-prefix
Johan Dahlin [Sat, 8 Jan 2011 13:35:38 +0000 (11:35 -0200)]
Remove property user_data which doesn't exist anymore
Pavel Holejsovsky [Thu, 20 Jan 2011 13:54:19 +0000 (14:54 +0100)]
Bump required GObject-Introspection version to 0.10.1
Pavel Holejsovsky [Tue, 18 Jan 2011 05:37:11 +0000 (06:37 +0100)]
[GI] Mark unintrospectable constructs as (skip)
Also adds 'Rename to:' annotation to some constructs replacing the
skipped ones.
Pavel Holejsovsky [Tue, 18 Jan 2011 09:10:30 +0000 (10:10 +0100)]
[GI] Add missing (out) and (array) annotations
Pavel Holejsovsky [Tue, 18 Jan 2011 09:01:17 +0000 (10:01 +0100)]
[GI] Add missing (transfer) annotations
Pavel Holejsovsky [Tue, 18 Jan 2011 09:14:56 +0000 (10:14 +0100)]
[GI] Add missing (scope) annotations
Pavel Holejsovsky [Tue, 18 Jan 2011 09:14:33 +0000 (10:14 +0100)]
[GI] Fixes of existing incorrect annotations
Florian Müllner [Thu, 20 Jan 2011 11:29:17 +0000 (12:29 +0100)]
docs: Fix typo
s/gtk_builder_add_From_file/gtk_builder_add_from_file
Cosimo Cecchi [Thu, 20 Jan 2011 10:59:53 +0000 (11:59 +0100)]
gail: fix the build
Steve Frécinaux [Thu, 20 Jan 2011 10:53:47 +0000 (11:53 +0100)]
[GI] Fix transfer annotation on gtk_dialog_add_button()
The transfer annotation was (transfer full) but the caller actually
doesn't own a reference of the object. This made the pygobject test suite
crash because pygobject was trying to unref the returned GtkButton
instance.
https://bugzilla.gnome.org/show_bug.cgi?id=639949
Laszlo Pandy [Wed, 19 Jan 2011 09:44:49 +0000 (10:44 +0100)]
[GI] Add annotation (type GdkModifierType) to state attributes in many GdkEvent structs.
The state attribute is available in GdkEventMotion, GdkEventButton,
GdkEventScroll, GdkEventKey and GdkEventCrossing. This type annotation
fixes the wrapping of this attribute in the GI PyGObject bindings.
https://bugzilla.gnome.org/show_bug.cgi?id=639929
Pavel Holejsovsky [Thu, 20 Jan 2011 09:37:17 +0000 (10:37 +0100)]
[GI] Add (type) annotations to real types
Matthias Clasen [Thu, 20 Jan 2011 06:30:34 +0000 (01:30 -0500)]
Add a GtkBuilder section to the tutorial
Matthias Clasen [Thu, 20 Jan 2011 03:52:55 +0000 (22:52 -0500)]
Be more careful with private event data
When copying allocated events, also copy the source device.
When synthesizing double or triple clicks, copy the original
button press event including device information.
https://bugzilla.gnome.org/show_bug.cgi?id=639822
Matthias Clasen [Thu, 20 Jan 2011 01:42:50 +0000 (20:42 -0500)]
Make GtkBorder style properties have a non-NULL default
https://bugzilla.gnome.org/show_bug.cgi?id=639625
Matthias Clasen [Wed, 19 Jan 2011 22:01:19 +0000 (17:01 -0500)]
Add gtk_text_view_get_cursor_locations
In GTK 3.0 it's no longer possible to e.g. pop up something
at a text view's cursor (this wasn't exactly possible before
either without including gtktextlayout, but this is a quite
special need anyway).
Michael Kotsarinis [Wed, 19 Jan 2011 20:03:53 +0000 (22:03 +0200)]
Updated Greek translation
Matthias Clasen [Wed, 19 Jan 2011 19:34:08 +0000 (14:34 -0500)]
Use simplesect in the tutorial
This avoids blowing up the global toc even more.
Jorge González [Wed, 19 Jan 2011 18:37:26 +0000 (19:37 +0100)]
Updated Spanish translation
Michael Kotsarinis [Wed, 19 Jan 2011 18:30:31 +0000 (20:30 +0200)]
Updated Greek translation
Michael Kotsarinis [Wed, 19 Jan 2011 18:18:22 +0000 (20:18 +0200)]
Updated Greek translation
Matthias Clasen [Wed, 19 Jan 2011 17:55:48 +0000 (12:55 -0500)]
Mention type vs region ambiguity in the docs
Martin Pitt [Wed, 19 Jan 2011 14:40:46 +0000 (15:40 +0100)]
Fix linking of drawing example
Commit
80e1340e introduced using a GDK method in examples/drawing.c, so
actually link that to GDK. Fixes build failure with --as-needed linker option
and gcc 4.5.
Sebastian Pölsterl [Wed, 19 Jan 2011 14:09:05 +0000 (15:09 +0100)]
[GI] Added missing (transfer none) annotation to gtk_tree_view_get_path_at_pos
Trevor Saunders [Wed, 19 Jan 2011 07:39:04 +0000 (15:39 +0800)]
gail now provides toolkit = gail as an AtkAttribute of all gtk objects.
https://bugzilla.gnome.org/show_bug.cgi?id=598952
https://bugzilla.gnome.org/show_bug.cgi?id=638920
Matthias Clasen [Wed, 19 Jan 2011 04:57:17 +0000 (23:57 -0500)]
Add a drawing example to the tutorial
Matthias Clasen [Wed, 19 Jan 2011 04:01:16 +0000 (23:01 -0500)]
Add a packing example to the tutorial
Matthias Clasen [Wed, 19 Jan 2011 02:42:29 +0000 (21:42 -0500)]
Add a paragraph explaining events and signals
Carlos Garnacho [Wed, 19 Jan 2011 03:12:08 +0000 (04:12 +0100)]
Make GtkCssProvider deal with widget types not being in plain CamelCase
Fixes bug #Bug 639754, reported by Kjell Ahlstedt. gtkmm doesn't
use plain CamelCase for its widget type names, so in order to
distinguish widget type names from regions in the CSS parser,
the following checks are now done:
* if it contains an uppercase letter -> widget class (that should
also work for gtkmm)
* if it's a string compound by lowercase letters and '-' -> it's
a region, checks have been added in gtk_style_context_add_region()
and gtk_widget_path_iter_add_region() to ensure this.
Carlos Garnacho [Wed, 19 Jan 2011 02:10:12 +0000 (03:10 +0100)]
Set horizontal/vertical style classes to GtkRanges
Carlos Garnacho [Tue, 18 Jan 2011 19:02:51 +0000 (20:02 +0100)]
Make GtkCheckButton/GtkRadioButton background white again
Carlos Garnacho [Tue, 18 Jan 2011 18:39:09 +0000 (19:39 +0100)]
Don't displace background for spinbuttons in the theming engine
This is a leftover from the older GtkStyle code, this is handled
through CSS spacings instead.
A S Alam [Wed, 19 Jan 2011 03:10:52 +0000 (08:40 +0530)]
update Punjabi Translation
Yaron Shahrabani [Tue, 18 Jan 2011 23:02:39 +0000 (01:02 +0200)]
Updated Hebrew translation.
Pavel Holejsovsky [Tue, 18 Jan 2011 09:12:38 +0000 (10:12 +0100)]
[GI] Cosmetic cleanups of annotations and doc comments
This change does not introduce any functionality change, mostly
cosmtic cleanups, like re-linebreak when introduced annotations messed
up indentation or whitespace errors fixes.
Pavel Holejsovsky [Tue, 18 Jan 2011 08:25:47 +0000 (09:25 +0100)]
[GI] Add missing (allow-none) annotations